aboutsummaryrefslogtreecommitdiff
path: root/src/pages/blog/[...slug].astro
diff options
context:
space:
mode:
authorAndrew Lee <alee14498@protonmail.com>2024-01-25 20:09:56 -0500
committerAndrew Lee <alee14498@protonmail.com>2024-01-25 20:09:56 -0500
commited2c9768a0471d11a0b87a5514dcbf387ebbf8f7 (patch)
tree3ffd02b87699b8e5b2a48ebbd8c9df16466f8f3e /src/pages/blog/[...slug].astro
parent162e303beeb5f2987852b543805fb6243a4ae725 (diff)
downloadpersonal-website-ed2c9768a0471d11a0b87a5514dcbf387ebbf8f7.tar.gz
personal-website-ed2c9768a0471d11a0b87a5514dcbf387ebbf8f7.tar.bz2
personal-website-ed2c9768a0471d11a0b87a5514dcbf387ebbf8f7.zip
Markdown cb style; Fixed chrome-only issue; Format date on blog
Diffstat (limited to 'src/pages/blog/[...slug].astro')
-rw-r--r--src/pages/blog/[...slug].astro3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/pages/blog/[...slug].astro b/src/pages/blog/[...slug].astro
index 7db75bb..de4efb6 100644
--- a/src/pages/blog/[...slug].astro
+++ b/src/pages/blog/[...slug].astro
@@ -1,6 +1,7 @@
---
import Page from '../../layouts/BlogPost.astro';
import { getEntry } from 'astro:content';
+import { formatDate } from "../../util";
const { slug } = Astro.params;
if (slug === undefined) {
@@ -15,7 +16,7 @@ if(entry === undefined) {
const { Content } = await entry.render();
---
-<Page title={entry.data.title} description={entry.data.description}>
+<Page title={entry.data.title} description={entry.data.description} date={formatDate(entry.data.date)}>
<main>
<Content />
</main>